<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MVVM原理</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="text">
        <h1>{{text}}</h1>
        <h3>{{classIn.name}}</h3>
        <h3>{{classIn.slogan}}</h3>
    </div>
    <script src="./MVVM.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                text: "1709A",
                classIn: {
                    name: "陈鹏",
                    slogan: "1709A"
                }
            }
        })
        window.Vue = Vue
    </script>
</body>
</html>